<?php
session_start();

if(isset($_SESSION['userid'])&&$_SESSION['level']!=2)
{
	
	header ("location: login.php");
	exit();
}
?>
<?
include("includes/top_user.php");
?>
<?
include("includes/connect.php");
$id=$_GET['userid'];
$sql = "select * from user where id='".$id."'";
$query = mysql_query($sql);
$row = mysql_fetch_array($query);
?>
<div id="box">
<h3>Thông tin thành viên</h3>
Level : <? if($row['level'] == 1) { echo "Member"; } else {echo "Administration" ;} ?><br />
UserName : <? echo $row['username']."<br>"; ?>
Họ Tên : <? echo $row['hoten']."<br>"; ?>
Email : <? echo $row['email']."<br>"; ?>

</div>
<?
include("includes/sidebar.php");
include("includes/footer.php");
?>